import { request } from './request';

export const login = (params) => {
  // console.log(params)
  return request({
    method: 'post',
    url: '/Login/Login',
    data: params,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  });
};

export const UpdatedFailLogins = (params) => {
  // console.log(params)
  return request({
    method: 'post',
    url: '/Login/UpdatedFailLogins',
    data: params,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  });
};

export const GetRandomNumber = (params) => {
  return request({
    method: 'post',
    url: '/Maintain/GetRandomNumber',
    data: params,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  });
};

export const GetRoleExtraPerm = (params) => {
  return request({
    method: 'get',
    url: '/Maintain/GetRoleExtraPerm',
    params,
  });
};
